package com.csetop.bank;

public class Account {
    private static double balance;

    public Account(double init_balance){
        this.balance = init_balance;
    }
    public static double getBalance(){
        return balance;
    }
    public void deposit(double amt){
        if (amt > 0){
            balance += amt;
        }
    }
    public void withdraw(double amt){
        if (amt > 0 && amt <= balance){
            balance -= amt;
        }
    }

}
